<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');


/*
| -------------------------------------------------------------------
|  后台管理员密码加密安全字符，一经设置不可更改，否则管理员无法登录
| -------------------------------------------------------------------
|
|
*/
define('SECRET_KEY', '@mczz.COM@');

/*
| -------------------------------------------------------------------
|  后台管理员登录超时时间
| -------------------------------------------------------------------
|
|
*/
define('LOGIN_TIME', 18000);

/*
| -------------------------------------------------------------------
|  后台管理员栏目权限设置，采用二进制
| -------------------------------------------------------------------
|
|
*/
define('PURVIEW_WEB', 1);
define('PURVIEW_MANAGER', 2);
define('PURVIEW_FRIEND_LINK', 4);
define('PURVIEW_COLUMN', 8);
define('PURVIEW_UPLOAD', 16);
define('PURVIEW_NEWS', 32);
define('PURVIEW_PERSON', 64);
define('PURVIEW_CONFERENCE', 128);
define('PURVIEW_ARTICLE', 256);
define('PURVIEW_AD', 512);
define('PURVIEW_DISTRICT', 1024);

// 备用
define('PURVIEW_PURVIEW', 2048);
define('PURVIEW_1', 4096);
define('PURVIEW_2', 8192);
define('PURVIEW_3', 16384);

/*
 | -------------------------------------------------------------------
|  后台时间显示格式
| -------------------------------------------------------------------
|
|
*/

define('DATE_FORMAT', 'Y-m-d H:i'); 		// 通用
define('DATE_FORMAT_CONFERENCE', 'Y-m-d'); 	// 会议
define('DATE_FORMAT_PERSON', 'Y-m'); 		// 人物
define('DATE_FORMAT_AD', 'Y-m-d'); 			// 广告

// 允许上传文件的格式和大小，未使用此配置
define('UPLOAD_ALLOWED_IMAGE', 'gif|jpg|png|bmp');
define('UPLOAD_ALLOWED_FILE', 'txt|zip|rar');
define('UPLOAD_ALLOWED_IMAGE_SIZE', 500);
define('UPLOAD_ALLOWED_FILE_SIZE', 10240);

/* End of file constants.php */
/* Location: ./application/config/constants.php */